package cEvent

import (
	"log"

	"github.com/gin-gonic/gin"

	driver "gitee.com/csingo/cEvent/drivers/channel"
	"gitee.com/csingo/cEvent/interfaces"
)

type TestEvent struct {
	Name string
	Age  int
}

func (i *TestEvent) EventName() (string, string) {
	return "cEvent", "TestEvent"
}

func (i *TestEvent) Driver() interfaces.DriverInterface {
	return &driver.Driver{
		//Client: "",
		//Name:   "test",
		Size: 1,
	}
}

func (i *TestEvent) Subscribe(ctx *gin.Context, data *TestEvent) (err error) {
	log.Println("handler", data)
	return nil
}
